<!DOCTYPE html>
<!--Thymeleaf模板支持-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8'">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>
    <!--显示自控制器传来的实体 user的值-->
    <div th:text="${user.name}"></div>
    <div th:text="${user.age}"></div>
</div>
</body>
</html>